package model

type User struct {
	Id                int    `json:"id" gorm:"column:id;primaryKey;autoIncrement"`
	GroupID           int    `json:"-" gorm:"column:group_id"`
	UserNumber        string `json:"-" gorm:"column:user_number"`
	FacebookID        string `json:"-" gorm:"column:facebook_id"`
	GoogleID          string `json:"-" gorm:"column:google_id"`
	Username          string `json:"username" gorm:"column:username;size:32;default:''"`
	Nickname          string `json:"nickname" gorm:"column:nickname;size:50;default:''"`
	Password          string `json:"-" gorm:"column:password;size:32"`
	PayPassword       string `json:"-" gorm:"column:pay_password"`
	Salt              string `json:"-" gorm:"column:salt;size:30;default:''"`
	Email             string `json:"email" gorm:"column:email;size:100;default:''"`
	Mobile            string `json:"-" gorm:"column:mobile;size:11;default:''"`
	Avatar            string `json:"avatar" gorm:"column:avatar;size:255;default:''"`
	Level             int    `json:"level" gorm:"column:level"`
	Gender            int    `json:"gender" gorm:"column:gender"`
	Birthday          string `json:"birthday" gorm:"column:birthday"` // 使用 string 类型存储日期
	Bio               string `json:"bio" gorm:"column:bio;size:100;default:''"`
	Money             string `json:"-" gorm:"column:money;size:100"`
	CurrentCurrency   string `json:"current_currency" gorm:"column:current_currency;size:10;default:'CNY'"`
	USDT              string `json:"-" gorm:"column:usdt"`
	TRX               string `json:"-" gorm:"column:trx"`
	Balance           string `json:"-" gorm:"column:balance;default:'0'"`
	Score             int    `json:"score" gorm:"column:score;default:0"`
	Successions       int    `json:"-" gorm:"column:successions;default:1"`
	Maxsuccessions    int    `json:"-" gorm:"column:maxsuccessions;default:1"`
	Prevtime          int64  `json:"prevtime" gorm:"column:prevtime"`
	Logintime         int64  `json:"logintime" gorm:"column:logintime"`
	Loginip           string `json:"-" gorm:"column:loginip;size:50;default:''"`
	Loginfailure      int    `json:"-" gorm:"column:loginfailure"`
	Loginfailuretime  int64  `json:"-" gorm:"column:loginfailuretime"`
	Joinip            string `json:"-" gorm:"column:joinip;size:50;default:''"`
	Jointime          int64  `json:"-" gorm:"column:jointime"`
	Createtime        int64  `json:"-" gorm:"column:createtime"`
	Updatetime        int64  `json:"-" gorm:"column:updatetime"`
	Token             string `json:"-" gorm:"column:token;size:50;default:''"`
	Status            string `json:"-" gorm:"column:status;size:30;default:''"`
	IsVerify          int    `json:"-" gorm:"column:is_verify;default:2"`
	AgentID           int64  `json:"-" gorm:"column:agent_id"`
	Address           string `json:"address" gorm:"column:address"`
	PrivateKey        string `json:"-" gorm:"column:private_key"`
	PublicKey         string `json:"-" gorm:"column:public_key"`
	AddressHex        string `json:"-" gorm:"column:address_hex;size:255"`
	AddressBase58     string `json:"-" gorm:"column:address_base58;size:255"`
	OpenID            string `json:"-" gorm:"column:open_id;size:255"`
	FacebookOpenID    string `json:"-" gorm:"column:facebook_open_id;size:255"`
	GoogleSecret      string `json:"-" gorm:"column:google_secret;size:255"`
	GoogleAuthEnabled int    `json:"-" gorm:"column:google_auth_enabled;default:2"`
}
